package com.hosever.coreTest;

import java.text.ParseException;



public class ExceptionTest{
	
	public static void main(String[] args) throws ParseException {

		try {
			//ArithmeticException
//			System.out.println(10/0);
			
			//ArrayIndexOutOfBoundsException
//			String[] a = {"aa"};
//			String b = a[2];
			
			//ClassCastException
//			Object x = new Object();
//		    System.out.println((String)x);
			
			//NullPointerException
//			String a = null;
//			a.getBytes();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	
}
